
<?php


$form = $this->form;
$form->setAttribute('action', $this->url('xemthoikhoabieu', array('action' => 'index')));
$form->prepare();

echo $this->form()->openTag($form) . PHP_EOL;

echo $this->formRow($form->get('lop')) . PHP_EOL;
echo $this->formRow($form->get('namhoc')) . PHP_EOL;
echo $this->formRow($form->get('hocki')) . PHP_EOL;


echo "<br>".$this->formInput($form->get('submit')) . PHP_EOL;
echo $this->form()->closeTag($form) . PHP_EOL;


?>
<div id="error" class="error"><?php echo $this->error; ?></div>
<?php if(isset($thoikhoabieu)){ ?>
<table class="table">

	<tr>
    	<?php foreach ($thongtin as $tt) : ?>
        <td>
            <a>Lớp: <strong><?php echo $this->escapeHtml($tt->tenlop); ?></strong> </a>
        </td>
        <?php endforeach; ?>
        <td>Học kì: <strong><?php echo $hocki; ?></strong></td>
        <td>Năm học: <strong><?php echo $namhoc; ?></strong></td>
    </tr>
    
</table>
<table class="table">
	
    <tr>
        
        
        <th>
            <a>Thứ</a>
        </th>
        <th>
            <a>Buổi</a>
        </th>
        <th>
            <a>Tiết </a>
        </th>
        <th>
            <a>Môn học </a>
        </th>
        <th>
            <a>Giáo viên </a>
        </th>
           
        
    </tr>
    <?php foreach ($thoikhoabieu as $thoikhoabieu) : ?>
        <tr id="<?php echo $thoikhoabieu->id ?>">
        	<td><?php echo $this->escapeHtml($thoikhoabieu->tenthu); ?></td>
            <td><?php echo $this->escapeHtml($thoikhoabieu->buoi); ?></td>
            <td><?php echo $this->escapeHtml($thoikhoabieu->tentiet); ?></td>
            <td><?php echo $this->escapeHtml($thoikhoabieu->tenmonhoc); ?></td>
            <td><?php echo $this->escapeHtml($thoikhoabieu->tengv); ?></td>
            
            
        </tr>
    <?php endforeach; ?>
</table>
<?php } ?>